How to get DetailBand to print 'n' rows.
Hi
I have a MasterDetail report where I need to print 10 rows for the Detail. The MasterData prints the Master data needed, but the DetailData only prints the query results.
The query for the Detail will always return at least 1 value, but for proper design structure and report conformity, 10 lines need to printed in total, so even if the query returns 1 result, another 9 blank rows need to be printed underneath it. How is this done?
I have tried to use the Add Child, but that then just adds a Blank row after each Detail loop. I need the Detail loop to run and finish, and once done, needs to print the remaining rows?
Using Delphi 10 Seattle and FR5 Embarcadero Edition.
Thanks in advance.
I have a MasterDetail report where I need to print 10 rows for the Detail. The MasterData prints the Master data needed, but the DetailData only prints the query results.
The query for the Detail will always return at least 1 value, but for proper design structure and report conformity, 10 lines need to printed in total, so even if the query returns 1 result, another 9 blank rows need to be printed underneath it. How is this done?
I have tried to use the Add Child, but that then just adds a Blank row after each Detail loop. I need the Detail loop to run and finish, and once done, needs to print the remaining rows?
Using Delphi 10 Seattle and FR5 Embarcadero Edition.
Thanks in advance.
Comments
Hi, thanks for that.
Where must I put the code 'DetailData2.RowCount = 9 - DetailData1.RecordCount' as I cannot access the DetailData2 from the Delphi source code.
Thanks
Thank you very much, that did the trick